<?php defined('SYSPATH') or die('No direct script access.');

/**
 * 缺省控制器
 * 
 * @author 陈蕾
 */
class Controller_Client extends Controller
{
	/**
	 * 首页
	 */
	public function action_index()
	{		
		$swf = sprintf('%sstatics/client/zndx.swf', str_replace('\\', '/', DOCROOT));

		if (file_exists($swf)) {
			$this->request->response = View::factory('client');
		} else {
			exit("课件客户端主程序不存在，请检查以下地址：{$swf}");
		}
	}
}